/**
 * 
 */
package GUI.main;

import java.awt.Color;
import java.awt.Dimension;
import java.awt.Graphics;

import javax.swing.BorderFactory;
import javax.swing.JPanel;
import javax.swing.border.EtchedBorder;

/**
 * @author mramsey3
 * 
 */
public class TopPanel extends JPanel {

    /**
     * 
     */
    private static final long serialVersionUID = 1L;
    private static Color backgroundColor = new Color(0, 92, 184);

    /**
     * 
     */
    public TopPanel() {
	super();
	setBorder(BorderFactory.createEtchedBorder(EtchedBorder.RAISED));
	setPreferredSize(new Dimension(MainFrame.WIDTH, 60));
	setLayout(null);
    }

    public void paintComponent(Graphics g) {
	g.setColor(backgroundColor);
	g.fillRect(0, 0, getWidth(), getHeight());
	g.setColor(Color.white);
	g.setFont(MainClient.LOGO_FONT);
	g.drawString(MainClient.LOGO_STRING, 10, getHeight() - 22);
    }
}
